package net.ncraft.mc.easyframework.async;

import lombok.extern.slf4j.Slf4j;
import net.ncraft.mc.easyframework.FunctionRegister;
import net.ncraft.mc.easyframework.context.ApplicationContext;
import net.ncraft.mc.easyframework.context.anno.Autowired;
import net.ncraft.mc.easyframework.context.anno.Component;
import java.util.concurrent.ThreadPoolExecutor;

@Slf4j
@Component
public class EasyAsyncAutoRegister implements FunctionRegister {

    @Autowired
    private ApplicationContext applicationContext;

    @Autowired
    private ThreadPoolExecutor threadPoolExecutor;

    @Override
    public void register() {
        if (threadPoolExecutor==null) {
            log.warn("ThreadPoolExecutor is null, please check your configuration");
        }
    }

}
